package com.atguigu.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * 全局异常处理类
 */
@Component
public class PaymentFallbackService implements  PaymentHystrixService {

    @Override
    public String payment_ok(Integer id) {
        return "-------------PaymentFallbackService fall back----payment_ok，哭了";
    }

    @Override
    public String payment_timeout(Integer id) {
        return "-------------PaymentFallbackService fall back----payment_timeout，哭了";
    }
}
